#!/usr/bin/env bash

set -e
DIR=$(realpath $0) && DIR=${DIR%/*}
cd $DIR
set -x

img=1.jpg

rm -rf out scale
overlap=10
args="$(./grid.py $img) $overlap"
scale=4
./split.py $img $args
./scale.py $scale
./merge.py scale $scale $args
